#include "Producer.h"

#include <cstdlib>
#include <ctime>
#include <iostream>

using std::cout;
using std::endl;

Producer::Producer() {}
Producer::~Producer() {}

void Producer::produce(TaskQueue &task){
    /* srand(clock()); */
    srand(time(nullptr));
    int cnt = 20;
    while(cnt--){
        int pnumber = rand() % 100;
        task.push(pnumber);
        cout <<"Producer produce " << pnumber << endl;
    }
}
